package com.myapplication.ui.listfragment;

import com.myapplication.base.IModel;
import com.myapplication.base.IPresenter;
import com.myapplication.base.Iview;
import com.myapplication.bean.ListBean;

import java.util.List;
import java.util.Map;

import retrofit2.Callback;

/**
 * Created by zitaojiang on 2016/10/6.
 */
public class Contract_List {
    public interface View extends Iview {
        //访问网络数据成功
        public void onGetDataSuccess(List<ListBean.DataBean> listBeanList);
        //访问网络数据失败
        public void onGetDataFail(String error);
    }

    public interface Model extends IModel {
        //获取主页面数据
        public void getData(Map<String, String> params, Callback<ListBean> callback);
//        //获取主页面更多数据
//        public void getMoreData(Map<String, String> params2, Callback<ListBean> callback);
    }

    public interface Presenter extends IPresenter {
        //获取主页面数据
        public void GetData(Map<String, String> params);
//        public void GetMoreData(Map<String, String> params2);
    }

}
